package com.fit.service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import com.fit.interfaces.Worker;



public class WorkersBean implements Workers {
	

	private Map<String, Worker> workers = new HashMap<String, Worker>();

	public Collection<Worker> retrieve() {
		return workers.values();
	}
	
	public Worker save(Worker worker) {
		return workers.put(worker.getName(),worker);
	}

	public Worker retrieveSingleWorker(String name) {
		return workers.get(name);
	}



}
